package com.company.calendar.dto;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

import java.time.LocalDate;

/**
 * 节假日DTO
 * 
 * @author System
 * @since 1.0.0
 */
@Data
public class HolidayDTO {
    
    private Long id;
    
    @NotNull(message = "公司ID不能为空")
    private Long companyId;
    
    @NotBlank(message = "节假日名称不能为空")
    @Size(max = 100, message = "节假日名称长度不能超过100个字符")
    private String holidayName;
    
    @NotNull(message = "节假日日期不能为空")
    private LocalDate holidayDate;
    
    @NotNull(message = "节假日类型ID不能为空")
    private Long typeId;
    
    private Boolean isWorkday = false;
    
    private String description;
    
    // 关联信息
    private String typeName;
    private String typeCode;
    private String typeColor;
}


